package com.util;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.stereotype.Component;

@Component
public class P_user {
    private Integer id;
    private String pAccount;
    private String pPassword;

    public P_user(){}
    public P_user(Integer id, String pAccount, String pPassword) {
        this.id = id;
        this.pAccount = pAccount;
        this.pPassword = pPassword;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @JsonProperty("pAccount")
    public String getpAccount() {
        return pAccount;
    }

    public void setpAccount(String pAccount) {
        this.pAccount = pAccount;
    }

    @JsonProperty("pPassword")
    public String getpPassword() {
        return pPassword;
    }

    public void setpPassword(String pPassword) {
        this.pPassword = pPassword;
    }
}
